#⼦类调⽤⽗类的同名⽅法和属性
class Master(object):
  def __init__(self):
    self.kongfu="[古法煎饼果子配方]"
  def makeCake(self):
    print(f"运用{self.kongfu}制作煎饼果子")
    
class School(object):
  def __init__(self):
    self.kongfu="[垃圾煎饼果子配方]"
  def makeCake(self):
    print(f"运用{self.kongfu}制作煎饼果子")
class Prentice(School,Master):
  def __init__(self):
    self.kongfu="[自创煎饼果子配方]"
  def makeCake(self):
    print(f"运用{self.kongfu}制作煎饼果子")
  def makeMasterCake(self):
    Master.__init__(self)
    Master.makeCake(self)
  def makeSchoolCake(self):
    School.__init__(self)
    School.makeCake(self)

daqiu=Prentice()
print(daqiu.kongfu)
daqiu.makeCake()
daqiu.makeMasterCake()
daqiu.makeSchoolCake()